package com.six.work.services;

import com.six.work.entity.Ad;
import com.six.work.entity.AdView;
import com.six.work.entity.Announcement;
import com.six.work.entity.AnnouncementView;

import java.util.List;

public interface AdServices {
    List<AdView> findAllAd();

    Integer DelAdByID(Integer ad_id);

    Integer insertAd(Ad ad);

    List<AdView> findAdByName(String adTitle);

    List<AdView> findAdByadIDAndannName(String adTitle, Integer admin_id);

    Ad SelectAdByID(Integer ad_id);

    Integer updateAd(Ad ad);

    List<Ad> findAd();

    List<Ad> findAd2();
}
